#pragma once

#include <cinttypes>
#include "common/define/noncopyable.h"

namespace xlog {

/**
 * 写日志基类
 */
class LogWriter : public noncopyable
{
public:
    virtual void write(const char* msg, uint32_t len) = 0;
};

/**
 * 异步写日志类
 */
class AsyncLogWriter : public LogWriter
{
public:
    virtual void write(const char* msg, uint32_t len) override {}
};

}  // namespace xlog